#include "seg.h"


unsigned char duan[] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00};
unsigned char wei[] = {0xfe,0xfd,0xfb,0xf7,0xef,0xdf};


void seg_disp(unsigned char weila,unsigned char duanla)
{
	P0 = 0X00;
	P2_6 = 1;
	P2_6 = 0;
	
	P0 = wei[weila];
	P2_7 = 1;
	P2_7 = 0;
	
	P0 = duan[duanla];
	P2_6 = 1;
	P2_6 = 0;
}